<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<html>
<head>
<title>Bilgi Formu</title>
</head>
<body>
<h2>BİLGİ FORMU!</h2>
<f:view>
	<h:form>
		<h:panelGrid columns="2">
			
		 Ad: <h:inputText value="#{homeworkBean.ad}" />
		 Soyad: <h:inputText value="#{homeworkBean.soyad}" />
		 Yas: <h:inputText value="#{homeworkBean.yas}" />
		 Cinsiyet: <h:selectOneRadio value="#{homeworkBean.cinsiyet}">
				<f:selectItem itemLabel="Bay" itemValue="Bay" />
				<f:selectItem itemLabel="Bayan" itemValue="Bayan" />
			</h:selectOneRadio>
		 Adres: <h:inputTextarea value="#{homeworkBean.adres}"
				style=" width : 150px;" />
		 Sehir: 
		 <h:selectOneMenu value="#{homeworkBean.sehir}" immediate="true"
				valueChangeListener="#{homeworkBean.loadLiseler}"
				onchange="submit()">
				<f:selectItems value="#{homeworkBean.sehirler}" />
			</h:selectOneMenu>
		Telefon numarası: <h:panelGrid columns="2">
				<h:inputText value="#{homeworkBean.telKod}" maxlength="3"
					style=" width : 37px;" />
				<h:inputText value="#{homeworkBean.telNo}" maxlength="7"
					style=" width : 106px;" />
			</h:panelGrid>
		
		Fakülte: <h:selectOneMenu value="#{homeworkBean.fakulte}">
				<f:selectItems value="#{homeworkBean.fakulteler}" />
			</h:selectOneMenu>
		Bölüm: <h:selectOneMenu value="#{homeworkBean.bolum}">
				<f:selectItems value="#{homeworkBean.bolumler}" />
			</h:selectOneMenu>
		Mezun Olduğunuz Lise: <h:selectOneMenu value="#{homeworkBean.lise}">
				<f:selectItems value="#{homeworkBean.liseler}" />
			</h:selectOneMenu>
		Beğendiğiniz Markalar:
		
		<h:selectManyMenu value="#{homeworkBean.markaTercihleri}">
				<f:selectItems value="#{homeworkBean.markalar}" />
			</h:selectManyMenu>
		<h:outputText value="Güncellemelerden haberdar olmak istiyor musunuz?" />
		<h:selectBooleanCheckbox value="#{homeworkBean.sendupdates}"/>
			<h:commandButton action="#{homeworkBean.register}" value="Kaydet" />
		</h:panelGrid>
	</h:form>
	</f:view>
</body>
</html>
